window: Set name on idle
authorMatthias Clasen <mclasen@redhat.com>
Sat, 15 Aug 2015 20:05:11 +0000 (16:05 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 15 Aug 2015 20:05:11 +0000 (16:05 -0400)
Use gdk_threads_add_idle, and set a name on the source to aid
debugging, as we do everywhere else.

gtk/gtkwindow.c

index 4e96d6f7126253dc8f890ce389127e1c5f418aee..0367c90a9e144dad278de1a3e34af99962df56fe 100644 (file)
@@ -12062,7 +12062,11 @@ static void
 gtk_window_update_debugging (void)
 {
   if (inspector_window)
-    g_idle_add (update_debugging, NULL);
+    {
+      guint id;
+      id = gdk_threads_add_idle (update_debugging, NULL);
+      g_source_set_name_by_id (id, "[gtk+] gtk_window_update_debugging");
+    }
 }
 
 static void